Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify collection table to expose root collection as root #38

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

JackLewis-digirati
Copy link
Collaborator

@JackLewis-digirati JackLewis-digirati commented Sep 20, 2024

Resolves #23

This PR updates flat collections to refer to the root collection as root everywhere. This includes when gathering parent collections.

How this works is that the primary key of the collections table has changed to a composite key of customer id and id, meaning that the root record of the customer will always have an id of root. The knock-on effect of this is a simplification in how we work out the root collection, as there is now not a separate internal id that is referred to as root by customers

@JackLewis-digirati JackLewis-digirati changed the title Feature/expose as root Modify collection table to expose root collection as root Sep 20, 2024
@JackLewis-digirati JackLewis-digirati merged commit 421c159 into main Sep 23, 2024
3 checks passed
@JackLewis-digirati JackLewis-digirati deleted the feature/exposeAsRoot branch September 23, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Always expose root collection as /root
3 participants